package com.example.takeaway.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 邢晨旭
 * {@code @date} 2023/10/22
 */
@Getter
@AllArgsConstructor
public enum OrderStatusEnum {
    //订单状态(0:创建, 1:待接单, 2:备餐中, 3:配送中,4:已完成, 5:已取消)
    CREATED(0, "创建"),
    WAITING(1, "待接单"),
    PREPARING(2, "备餐中"),
    DELIVERING(3, "配送中"),
    FINISHED(4, "已完成"),
    CANCELED(5, "已取消");

    private final Integer code;
    private final String desc;
}
